<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .box {
            width: 140px;
            height: 140px;
            background: url(./images/bg-1.png);
            /* 同一个盒子可以做多组动画 */
            animation:
                run 1s steps(12) infinite,
                box 3s forwards linear;
        }
        @keyframes run {
            0% {
                background-position: 0 0;
            }
            100% {
                background-position: -1680px 0;
            }
        }
        @keyframes box {
            0% {
                transform: translateX(0);
            }
            100% {
                transform: translateX(800px);
            }
        }
    </style>
</head>
<body>
    <div class="box">
    </div>
</body>
</html>